package com.sjd.dao;

import com.sjd.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    //增加一本书
    public int addBook(Books books);
    //删除一本书
    public int deleteBookById(@Param("bookId") int id);
    //修改一本书
    public int modifyBook(Books books);
    //查询一本书
    public Books selectBookById(@Param("bookId")int id);
    //查询全部的书
    public List<Books> selectAllBooks();

    public Books selectBook(@Param("bookName") String bookName);
}
